const controller = require('./device.controller');

exports.init = (router) => {
  router.get('/devices', controller.getPublicDevices);
  router.post('/device/:deviceID', controller.applyDevice);
  router.del('/device/:deviceID', controller.releaseDevice);
  router.get('/device/isAllow', controller.isAllowApply);
  router.get('/user/devices', controller.getPrivateDevices);
  router.get('/user/devices/:deviceID/available', controller.isAvailableDevice);
};
